<?php

/**
 * 图片位置管理model操作
 */

namespace app\common\model;

use app\common\model\Common;

class Picture extends Common
{
    protected $pk     = 'id';
    protected $insert = ['admin_id', 'create_time'];
    protected $auto   = ['create_time'];

    protected function setAdminIdAttr()
    {
        return get_admin_id();
    }

    protected function setCreateTimeAttr()
    {
        return date('Y-m-d H:i:s');
    }

    //返回原有数据  不自动进行时间转换
    public function getCreateTimeAttr($time)
    {
        return $time;
    }

}
